/*google-fonts*/
/* @import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap'); */
@import './google-fonts.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --clr: #41838a;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background-color: var(--clr);
}

.sidebar {
  position: fixed;
  /* 绝对定位，相对于其最近的已定位（非 static）祖先元素进行定位 */
  /* position: absolute; */
  /* 侧边栏的宽度设置为 80px */
  width: 80px;
  /* 高度设置为100%，即与包含它的元素的高度相同 */
  height: 100%;
  /* 背景颜色设置为白色 */
  background-color: #fff;
  /* 过渡效果设置为0.5秒，适用于属性值变化时的平滑过渡 */
  transition: 0.5s;
  /* 左内边距设置为10px，为侧边栏内容提供一些左边距 */
  padding-left: 10px;
  /* 隐藏溢出的内容，即如果侧边栏内容超出了其指定的宽度或高度，超出部分将不可见 */
  overflow: hidden;
}

.top-nav {
  /* position: absolute; */
  position: fixed;
  top: 0;
  /* 定位到面顶部 */
  /* left: 80px;
  right: 50px; */
  padding-left: 80px;
  padding-right: 50px;
  width: 100%;
  /* 宽度为整个视口宽度减去sidebar的宽度和padding */
  background-color: #fff;
  /* 导航栏背景颜色 */
  color: #333;
  /* 导航栏文字颜色 */
  height: 50px;
  /* 导航栏高度 */
  display: flex;
  /* 使用Flexbox布局 */
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
  /* padding: 0; */
  /* 移除默认的padding */
  box-sizing: border-box;
  /* 包括padding和border在内的宽度计算 */
  overflow: hidden;
  /* 隐藏溢出的内容 */

  /* transform: translateX(0); */
  /* 默认位置 */
  /* margin-left: 0;
  transition: margin-left 0.5s ease; */

  /* box-sizing: border-box; */
  /* 包含 padding */
  transition: padding-left 0.5s ease;
  /* 只在 padding-left 变化时添加动画 */

}

.top-nav a {

  color: #333;
  /* 链接文字颜色 */
  text-decoration: none;
  /* 去除下划线 */
  padding: 0 15px;
  /* 链接左右padding */
  height: 100%;
  /* 高度与导航栏相同 */
  display: flex;
  /* 使用Flexbox布局 */
  align-items: center;
  /* 垂直居中 */
}

.top-nav a:hover {
  background-color: #555;
  /* 鼠标悬停时的背景颜色变化 */
}

#search-app {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
  /* 在导航栏中将搜索框右对齐 */
}

#search-app form {
  display: flex;
  align-items: center;
  margin-left: auto;
}

#search-app form input {
  padding: 5px 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
}

#search-app form input:focus {
  border-color: var(--clr);
}

#search-app form button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
}

#search-app form button ion-icon {
  font-size: 1.2em;
  color: #333;
  transition: color 0.3s;
}

#search-app form button:hover ion-icon {
  color: var(--clr);
}

/****************************************************************************************/
.advanced-search-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.advanced-search-btn:hover {
  background-color: #218838;
}

.dropdown-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-dropdown {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

/* Advanced Search Modal Styles */
.advanced-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  /* Transparent dark overlay */
}

.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  overflow-y: auto;
  max-height: 80vh;
  /* Makes it scrollable if content overflows */
}

/* Close Button */
.modal-content .close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #333;
}

/* Section Title */
.modal-content h4 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 10px;
}

/* Checkbox Group Layout */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 5px;
  color: #444;
}

/* Price Input Fields */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.price-inputs input {
  width: 100px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

.price-inputs input:focus {
  border-color: #007bff;
}

.price-inputs button {
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.price-inputs button:hover {
  background-color: #0056b3;
}

/* Tags, VA, Circle Section */
.tags-section input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  margin-bottom: 10px;
}

.tags-section ul {
  padding-left: 0;
  margin-top: 10px;
  list-style-type: none;
  padding: 0;
}

.tags-section li {
  display: inline-block;
  background-color: #f1f1f1;
  padding: 5px 10px;
  border-radius: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 0.9rem;
  position: relative;
  display: flex;
}

.tags-section li span {
  color: red;
  cursor: pointer;
  margin-left: 10px;
  font-size: 1rem;
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}

/* Apply Button */
.apply-btn {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.apply-btn:hover {
  background-color: #218838;
}

/* Modal Overlay for Background */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Scrollable Content */
.modal-content {
  overflow-y: auto;
  max-height: 80vh;
}

/****************************************************************************************/


.sidebar.active {
  width: 300px;
}

.sidebar ul {
  position: relative;
  height: 100%;
}

.sidebar ul li {
  position: relative;
  list-style: none;
}

.sidebar ul li.active {
  background-color: var(--clr);
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}

.sidebar ul li.active::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 5px 5px 0 5px var(--clr);
  background-color: transparent;
}

.sidebar ul li.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  border-top-right-radius: 20px;
  box-shadow: 5px -5px 0 5px var(--clr);
  background-color: transparent;
}


.sidebar ul li.logo {
  margin-bottom: 50px;
}

.sidebar ul li.logo .icon {
  font-size: 2em;
  color: var(--clr);
}

.sidebar ul li.logo .text {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--clr);
}

.sidebar ul li a {
  position: relative;
  display: flex;
  white-space: nowrap;
  text-decoration: none;
}

.sidebar ul li a .icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 60px;
  height: 70px;
  font-size: 1.5em;
  color: #333;
  transition: 0.5s;
  padding-left: 10px;
}

.sidebar ul li a .text {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  font-size: 1em;
  color: #333;
  padding-left: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: 0.5s;
}

.sidebar ul li.active a .icon {
  color: #fff;
}

.sidebar ul li.active a .text {
  color: var(--bg);
}

.sidebar ul li:hover a .icon,
.sidebar ul li:hover a .text {
  color: var(--bg);
}

.sidebar ul li.active a .icon::before {
  content: '';
  position: absolute;
  inset: 5px;
  width: 60px;
  background-color: var(--bg);
  border-radius: 50%;
  transition: 0.5s;
}

.sidebar ul li:hover.active a .icon::before {
  background-color: #fff;
}

.bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.imgBx {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  overflow: hidden;
}

.imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menuToggle {
  /* position: absolute; */
  position: fixed;
  top: 0px;
  right: 0px;
  width: 50px;
  height: 50px;
  background-color: #31a4ff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.menuToggle::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: #fff;
  transform: translateY(-9px);
  transition: 0.5s;
  box-shadow: 0 9px 0 #fff;
}

.menuToggle::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: #fff;
  transform: translateY(9px);
  transition: 0.5s;
}

.menuToggle.active::before {
  transform: translateY(0) rotate(45deg);
  box-shadow: 0 0 0 #fff;
}

.menuToggle.active::after {
  transform: translateY(0) rotate(-45deg);
}

.top-nav.active {
  /* transform: translateX(220px); */
  /* 偏移 sidebar 的宽度 */
  /* margin-left: 220px; */
  /* 当 sidebar 展开时，调整 top-nav 位置 */
  /* width: calc(100% - 300px - 50px); */
  /* 调整导航栏宽度以适应 sidebar */
  /* transition: 0.5s; */
  padding-left: 300px;
}

.poster-wall,
.settings-page,
.tags-page,
.va-page,
.circle-page {
  padding-left: 80px;
  /* 与sidebar初始状态保持一致 */
  padding-top: 70px;
  width: 100%;
  /* 宽度自适应整个窗口 */
  transition: padding-left 0.5s ease;
  /* 在 padding-left 上应用动画效果 */
  display: flex;
  flex-wrap: wrap;
  /* 让海报以响应式方式排列 */
  justify-content: flex-start;
  box-sizing: border-box;
}

/* 当 sidebar 展开时调整海报墙的 padding */
.poster-wall.active,
.settings-page.active,
.tags-page.active,
.va-page.active,
.circle-page.active {
  padding-left: 300px;
  /* 与 sidebar 展开状态时的宽度保持一致 */
}

.settings-item,
.tags-container {
  background-color: #ccc;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  padding: 20px;
}

.settings-item,
.tags-container {
  display: grid;
  gap: 10px;
}

.settings-item label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #777;
}

.settings-item input[type="text"],
.settings-item input[type="number"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.settings-item input[type="text"]:focus,
.settings-item input[type="number"]:focus {
  outline: none;
  border-color: #66afe9;
}

.settingItemBtn {
  padding: 10px 0px;
  margin-left: 90%;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.settingItemBtn:hover {
  background-color: #0056b3;
}

@media screen and (max-width: 800px) {
  .settingItemBtn {
    margin-left: 70%;
  }
}

.poster-item {
  width: 300px;
  background-color: #ccc;
  margin: 10px;
  /* padding: 10px; */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.poster-item:hover {
  transform: scale(1.05);
}

.poster-item img {
  width: 100%;
  height: 225px;
  border-radius: 10px;
}

.poster-item h2,
.settings-item h2 {
  font-size: 1.2em;
  margin: 10px 0;
}

.poster-item p {
  margin: 5px 0;
  color: #555;
}

header {
  text-align: center;
  margin: 20px 0;
}

.poster-circle {
  display: flex;
  margin: 6%;
  font-size: 15px;
  /* color: #007bff; */
  margin-bottom: 10px;
  position: relative;
}

.poster-rating {
  display: flex;
  margin: 6%;
  /* align-items:center; */
  margin-bottom: 10px;
  position: relative;
}

.star_wrap {
  position: relative;
  display: inline-block;
  width: 120px;
  /* 设置星星总宽度 */
  height: 23px;
}

/* 空心星星（背景星星） */
.rate::before {
  content: url(../images/icon_rate_star.png);
  /* 这里使用空心星星的图片 */
  position: absolute;
  top: 2px;
  left: 0;
  display: inline-block;
  width: 120px;
  /* 星星的总宽度 */
  height: 23px;
}

/* 实心星星（前景填充星星） */
.rate::after {
  content: url(../images/icon_rate_star_color.png);
  /* 这里使用实心星星的图片 */
  position: absolute;
  top: 2px;
  left: 0;
  display: inline-block;
  width: var(--rate-width, 0);
  height: 23px;
  overflow: hidden;
  /* 确保溢出部分隐藏 */
}

.tag-sp,
.tag-rj {
  position: absolute;
  top: 0px;
  right: 0%;
  display: flex;
  margin-right: 1%;
  justify-content: flex-end;
  gap: 2px;
}

/* 
.tag-rj {
  top: 0px;
} */


.poster-lang-tag,
.poster-age-tag,
.poster-sub-tag,
.poster-vr-tag,
.poster-rjCode-tag {
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.poster-lang-tag {
  background-color: #007bff;
}

.poster-sub-tag {
  background-color: #f370df;
}

.poster-vr-tag {
  background-color: rgb(232, 135, 87);
}

.poster-rjCode-tag {
  background-color: rgb(104, 220, 240);
}

.poster-tags,
.poster-va {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2%;
}

.tag,
.va {
  background-color: #eee;
  color: #333;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
}

.folder-list {
  list-style: none;
  padding: 0;
}

/* 
.folder-item {
  background-color: #f0f0f0;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
} */

.folder-name {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #777;
  /* Gray color for label text */
}

.folder-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.folder-path {
  width: 70%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  margin-right: 10px;
}

.folder-buttons button {
  padding: 7px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.folder-buttons button:hover {
  background-color: #0056b3;
}

.folder-buttons {
  display: flex;
  gap: 10px;
}

/* ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓  Tags界面  ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */

/* 搜索框 */
.search-bar {
  margin-bottom: 20px;
}

/* 搜索框的输入 */
.search-bar input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-button {
  background-color: #39c5bb;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tag-button:hover {
  background-color: #66ccff;
}

/* ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑  Tags界面  ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ */

.pagination {
  margin-top: 15px;
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 海报墙布局优化 */
.poster-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-left: 80px; /* 为侧边栏留出空间 */
}

.poster-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.poster-item:hover {
    transform: translateY(-5px);
}

.poster-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* 产品信息样式优化 */
.poster-info {
    padding: 12px;
}

.poster-title {
    font-size: 16px;
    margin: 0 0 8px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.poster-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    background: #f0f0f0;
}

.meta-tag.sub { background: #4CAF50; color: white; }
.meta-tag.vr { background: #2196F3; color: white; }
.meta-tag.age.r18 { background: #f44336; color: white; }
.meta-tag.age.r15 { background: #ff9800; color: white; }
.meta-tag.age.all { background: #4CAF50; color: white; }

.poster-circle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.va-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}

.va-item {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.poster-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.tag {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}